From: Roan Kattouw Date: Sat, 16 Aug 2008 20:52:56 +0000 (+0000) Subject: API: Fixing an E_NOTICE reported by Wikia. Can't reproduce locally, but an extra... X-Git-Tag: 1.31.0-rc.0~45867 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=8ca02215a8fa1f5448b3d7fb02ea56257f7ce880;p=lhc%2Fweb%2Fwiklou.git API: Fixing an E_NOTICE reported by Wikia. Can't reproduce locally, but an extra @ can't hurt. --- diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index f14b462c31..8199070e87 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -229,8 +229,8 @@ class ApiQuery extends ApiBase { * Create instances of all modules requested by the client */ private function InstantiateModules(&$modules, $param, $moduleList) { - $list = $this->params[$param]; - if (isset ($list)) + $list = @$this->params[$param]; + if (!is_null ($list)) foreach ($list as $moduleName) $modules[] = new $moduleList[$moduleName] ($this, $moduleName); }